<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ include file="/include/taglibs.jsp" %>
<html>
<head>
    <%@include file="/include/header.html" %>
    <link rel="stylesheet" href="${ctx}/statics/css/blanceDrop.css">
    <link rel="stylesheet" href="${ctx}/statics/css/update.css">
    <link rel="stylesheet" href="${ctx}/statics/css/common.css">
    <link rel="stylesheet" href="${ctx}/libjs/plugins/laydate/laydate.css">
    <script src="${ctx}/libjs/plugins/laydate/laydate.js"></script>
    <link rel="stylesheet" href="${ctx}/libjs/plugins/bootstrap-table-pagejump/bootstrap-table-pagejump.css">
    <script src="${ctx}/libjs/plugins/bootstrap-table-pagejump/bootstrap-table-pagejump.js"></script>
    <link rel="stylesheet" href="${ctx}/libjs/plugins/bootStrap-table-fixed-column/bootstrap-table-fixed-columns.css">
    <script src="${ctx}/libjs/plugins/bootStrap-table-fixed-column/bootstrap-table-fixed-columns.js"></script>
    <style>
        .bootstrap-table .fixed-table-container .table thead th .th-inner {
            text-align: center !important;
        }
        .table > tbody > tr > .operate-td, .table > tfoot > tr > .operate-td{
            padding: 0 !important;
        }
    </style>
</head>

<script type="text/javascript">
    $('#topLink', window.parent.document).html(function (i, origText) {
        return '<ol class="breadcrumb">' +
            '<li class="breadcrumb-item">' +
            '<a href="">主页</a>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<a>分销商结算</a>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<strong>对账单</strong>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<a href="javascript:window.history.go(-1);"><i class="fa fa-times"></i> 返回</a>' +
            '</li>' +
            '</ol>';
    });

    var has_add = '';
    var has_edit = '';
    var has_delete = '';
</script>

<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="col-sm-12">
        <div class="ibox">
            <input type="hidden" id="billOrderId" value="">
            <input type="hidden" id="adjustElecAmount" value="">
            <input type="hidden" id="adjustServiceAmount" value="">
            <input type="hidden" id="billTotalMoney" value="">
            <input type="hidden" name="tenantOperatorCode" id="tenantOperatorCode"
                   value="${tenantOperatorCode}">
            <div class="ibox-body">
                <div class="row">
                    <input id="billOrderNum" name="billOrderNum" type="text"
                           class="form-control shortInput input-distance"
                           placeholder="结算订单号">
                    <select name="elecStationId" id="elecStationId" class="form-control shortInput input-distance">
                        <option value="">站点选择</option>
                        <c:forEach items="${elecStationList}" var="elecStation">
                            <option value="${elecStation.elecStationId}">${elecStation.stationName}</option>
                        </c:forEach>
                    </select>
                    <%-- 状态 0待审核 1运营商已审核 2复核中 3结算完成 默认0 --%>
                    <select name="status" id="status" class="form-control shortInput input-distance">
                        <option value="">状态</option>
                        <%--<option value="0">待审核</option>--%>
                        <option value="1">待确认账单</option>
                        <option value="2">复核中</option>
                        <option value="3">结算完成</option>
                        <option value="4">待推送</option>
                    </select>
                    <input id="startTime" name="startTime" type="text" class="form-control shortInput input-distance"
                           placeholder="账单开始时间" readonly>
                    <input id="endTime" name="endTime" type="text" class="form-control shortInput input-distance"
                           placeholder="账单结束时间" readonly>
                    <button class="btn btn-success input-distance" style="margin-top: 0" onclick="acctBillOrder.reLoad()">查询</button>
                    <button type="button" class="btn btn-success marginright-auto input-distance" style="margin-top: 0"
                            onclick="acctBillOrder.exportAcctBillOrder()">
                        导出</button>
                </div>
                <table id="exampleTable" data-mobile-responsive="true">
                </table>
                <div class="confirmModal hide">
                    <span style="position: absolute;right: 10px;top: 5px;cursor: pointer" onclick="closeBtn()">X</span>
                    <div>请认真查看结算单数据，如有异议，请操作”有异议，打回“操作，让平台再次进行审核，
                        打回后，务必提前联系平台，加快处理效率，谢谢！
                    </div>
                    <div class="inputBlock">
                        <span >驳回原因:</span><textarea style="width: 85%" rows="4" id="rejectRemark"
                                                     name="rejectRemark"></textarea>
                    </div>
                    <div class="buttonBlock">
                        <div class="cancleButton">有异议，打回</div>
                        <div class="confirmButton">确认没问题</div>
                    </div>
                </div>


            </div>
        </div>
    </div>
</div>
<script type="text/javascript" src="${ctx}/appjs/acct/acctBillOrderOperator.js"></script>
<script type="text/javascript">

    // //日期范围限制
    var start = {
        elem: '#startTime',
        format: 'YYYY-MM-DD hh:mm:ss',
        // theme: '#3195f0',
        // min: laydate.now(), //设定最小日期为当前日期
        // max: '2099-06-16 23:59:59', //最大日期
        istime: true,
        istoday: false
    };
    var end = {
        elem: '#endTime',
        format: 'YYYY-MM-DD hh:mm:ss',
        // theme: '#3195f0',
        // min: laydate.now(),
        // max: '2099-06-16 23:59:59',
        istime: true,
        istoday: false
    };
    laydate(start);
    laydate(end);
    laydate.skin('molv');//皮肤

    function closeBtn(){
        $(".confirmModal").addClass("hide");
    }
    acctBillOrder.init();
</script>
</body>
</html>